
<script type="text/javascript" src="{{base_url()}}js/jquery-1.7.2.js"></script>

<script type="text/javascript" src="{{base_url()}}js/jquery-ui.min.js"></script>

<script type="text/javascript" src="{{base_url()}}lib/lazyload/jquery.lazyload.js"></script>
<script type="text/javascript" src="{{base_url()}}lib/poshytip-1.1/src/jquery.poshytip.js"></script>
<script type="text/javascript" src="{{base_url()}}js/vadilation.js"></script>
<script type="text/javascript" src="{{base_url()}}deal_css/js/function.js"></script>
<script type="text/javascript" src="{{base_url()}}deal_css/js/account.js"></script>
<script type="text/javascript" src="{{base_url()}}js/block/jquery.blockUI.js"></script>
<script type="text/javascript" src="{{base_url()}}js/cycle/jquery.cycle.all.js"></script>
<script>
    $(document).ready(function(){
    $('.green-tooltip').poshytip({
        className: 'tip-green',
        showTimeout: 500,
        offsetX: -7,
	offsetY: 16,
        allowTipHover: false
    });
    $('.tooltip').poshytip({
        className: 'tip-darkgray',
        showTimeout: 500,
        alignTo: 'target',
        alignX: 'center',
        offsetY: 5,
        allowTipHover: false
    });
    $('.ftooltip').poshytip({
	className: 'tip-yellowsimple',
	showOn: 'focus',
	alignTo: 'target',
	alignX: 'left',
	alignY: 'center',
	offsetX: 5
    });
    });
    function ShowLogin(){
        $(".registerfrm").hide();
        $(".msg").hide();
        $(".loginfrm").fadeIn(500);
        $("#id-login-email").focus();
    }
    function ShowRegister(){
        $(".registerfrm").fadeIn(500);
        $(".msg").hide();
        $(".loginfrm").hide();
        $("#id-register-email").focus();
    }
    function CloseLogin(){
        $(".msg").hide();
        $(".loginfrm").fadeOut(500);
    }
    function CloseRegiser(){
        $(".msg").hide();
        $(".registerfrm").fadeOut(500);
    }
    function CloseNotice(){
        $(".noticefrm").fadeOut(500);
    }
    function ShowNotice(msg){
        $(".promo-content.notice").html(msg);
        $(".noticefrm").fadeIn(500);
        isrunning=false;
    }
    function CloseOpenIDNotice(){
        $(".openidnoticefrm").fadeOut(500);
    }
    function ShowOpenIDNotice(msg,social){
        if(social=="Yahoo"){
            $(".openidnoticefrm .jfk-bubble-arrow").css("left",168);
        }else if(social=="Google"){
            $(".openidnoticefrm .jfk-bubble-arrow").css("left","50%");
        }else if(social=="Facebook"){
            $(".openidnoticefrm .jfk-bubble-arrow").css("left",100);
        }
        if($(".registerfrm").is(':visible')){
            $(".openidnoticefrm").css("top",300);
        }else{
            $(".openidnoticefrm").css("top",100);
        }
        if(msg!=undefined && msg!=""){
            $(".openidnotice").html("Thông báo<br/>"+msg);
        }
        $(".openidnoticefrm").fadeIn(500);
    }
    function CloseNoticeMsg(){
        $(".NoticeMsgFrm").fadeOut(500);
    }
    function ShowNoticeMsg(msg){
        if(msg!=undefined && msg!=""){
            $(".NoticeMsg").html("Thông báo<br/>"+msg);
        }
        $(".NoticeMsgFrm").fadeIn(500);
        isrunning=false;
    }
    function Unblock(){ $.unblockUI(); }
    function KNotice(){
        $.blockUI({ 
            message: $("#kbox-notice"), 
            fadeIn: 700, 
            fadeOut: 700, 
            showOverlay: true, 
            centerY: true, 
            css: { 
                left:"50%",
                margin:'0 0 0 -170px',
                border: 'none', 
                padding: '0px', 
                backgroundColor: '#000', 
                '-webkit-border-radius': '0px', 
                '-moz-border-radius': '0px'
                
            } 
        });
        $('.blockOverlay').click($.unblockUI); 
    }
</script>
